﻿/****************************** Module Header ******************************\
 * Module Name:  tFinanceAccount.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/
 
using System;
 
namespace UCL.Data.ORM.UMD
{
    /// <summary>
    /// 财务-资金管理-账户 数据实体类
    /// </summary>
    [DBTable(Common = "财务-资金管理-账户", Version = "2013.1.25.0")]
    public class tFinanceAccount
    {
        /// <summary>
        /// 用户帐号
        /// </summary>
        public string UserName { get { return _UserName; } set { _UserName = value; } }
 
        [DBColumn(Alias = "用户帐号", IsKey = true, Length = "32")]
        private string _UserName;
 
        /// <summary>
        /// 账户总金额
        /// </summary>
        public decimal TotalAmount { get { return _TotalAmount ?? default(decimal); } set { _TotalAmount = value; } }
 
        [DBColumn(Alias = "账户总金额", DefaultValue = "0.00")]
        private decimal? _TotalAmount;
 
        /// <summary>
        /// 可用余额
        /// </summary>
        public decimal Blance { get { return _Blance ?? default(decimal); } set { _Blance = value; } }
 
        [DBColumn(Alias = "可用余额", DefaultValue = "0.00")]
        private decimal? _Blance;
 
        /// <summary>
        /// 不可用余额
        /// </summary>
        public decimal FrozenBlance { get { return _FrozenBlance ?? default(decimal); } set { _FrozenBlance = value; } }
 
        [DBColumn(Alias = "不可用余额", DefaultValue = "0.00")]
        private decimal? _FrozenBlance;
 
        /// <summary>
        /// 管理员帐号
        /// </summary>
        public string AdminName { get { return _AdminName; } set { _AdminName = value; } }
 
        [DBColumn(Alias = "管理员帐号", Length = "32")]
        private string _AdminName;
 
        /// <summary>
        /// 备注说明
        /// </summary>
        public string Remark { get { return _Remark; } set { _Remark = value; } }
 
        [DBColumn(Alias = "备注说明", CanBeNull = true, Length = "Max")]
        private string _Remark;
 
        /// <summary>
        /// 账户状态
        /// </summary>
        public short State { get { return _State ?? default(short); } set { _State = value; } }
 
        [DBColumn(Alias = "账户状态", DefaultValue = "0")]
        private short? _State;
 
        /// <summary>
        /// 开户申请时间
        /// </summary>
        public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }
 
        [DBColumn(Alias = "开户申请时间", DefaultValue = "getdate()")]
        private DateTime? _CreatedTime;
 
        /// <summary>
        /// 开户审核时间
        /// </summary>
        public DateTime ModifiedTime { get { return _ModifiedTime ?? default(DateTime); } set { _ModifiedTime = value; } }
 
        [DBColumn(Alias = "开户审核时间", CanBeNull = true)]
        private DateTime? _ModifiedTime;
 
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }
 
        [DBColumn(Alias="是否删除", DefaultValue="0")]
        private bool? _IsDeleted;
 
        /// <summary>
        /// 网站标签
        /// </summary>
        public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }
 
        [DBColumn(Alias="网站标签", CanBeNull=true, Length="16")]
        private string _SiteTag;
 
    }
}